package main

import (
    "fmt"
)
type hasaki struct{
    A int
}

func main()  {
    var name string
    ha:=new(hasaki)
    ha.dalala()
    for {
    fmt.Println("输入：",ha.A)  // 1
    fmt.Scanln(&name)
    }
}

func (d *hasaki) dalala(){
    d.A=1
}